#ifndef _EDASERIALIZE_H_
#define _EDASERIALIZE_H_

#include "edaBuffer.h"
#include "edaDefine.h"

class edaSerialize
{
 public:
  virtual ~edaSerialize() {}
  void doSerialize(edaBuffer &buf, bool pack);
  void* createObject(edaBuffer &buf);
  virtual void Serialize(edaBuffer &buf, bool pack);
  
  setClassID( _SYSCLASSID_ + _CLSID_INVALID_ );
};

edaSerialize *classGenerateFromBuffer( edaBuffer &buf );
edaSerialize* userClassGenerate(int clsid);

#endif
